//index.js
let getData = require('../../utils/getData.js')

Page({
  onReady(){
    var that = this
    wx.request({
      url: getData.api.INDEX,
      success(res){
        // console.log(res)
        if(res.data.status == '1'){
          that.setData({
            banners : res.data.banner,
            cplist:res.data.cplist
          })
        }
      }
    })
  },
  data: {
    banners:[],
    cplist:[],
    typeNames:['平台','债转','直银','基金','保险'],
    typeImgs:[
      '../../img/icon_hujin.png',
      '../../img/icon_zhaizhuan.png',
      '../../img/icon_zhiyin.png',
      '../../img/icon_jijin.png',
      '../../img/icon_baoxian.png',
    ]
  },
  
})
